package com.woniuxy.controller;

import com.woniuxy.annotation.PassLevelAnnotation;
import com.woniuxy.util.ResponseData;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/login")
@AllArgsConstructor
public class LoginController {
    @PassLevelAnnotation(passLevel = 1)
    @GetMapping("/deptDisplay")
    public ResponseData<?> deptDisplay(){
        return ResponseData.ok();
    }
    @GetMapping("/roleDisplay")
    @PassLevelAnnotation(passLevel = 2)
    public ResponseData<?> roleDisplay(){
        return ResponseData.ok();
    }
    @GetMapping("/userDisplay")
    @PassLevelAnnotation(passLevel = 3)
    public ResponseData<?> userDisplay(){
        return ResponseData.ok();
    }
    @GetMapping("/logDisplay")
    @PassLevelAnnotation(passLevel = 98)
    public ResponseData<?> logDisplay(){
        return ResponseData.ok();
    }

}
